/**
 * Created by weiyongming on 2019-01-22
 */
import React, {Component} from 'react';
import {
    StatusBar,
    Platform,
    Dimensions
} from 'react-native';

const { width, height} = Dimensions.get('window');
const  OS = Platform.OS;
const ios = (OS == 'ios');
const android = (OS == 'android');
const  isIPhoneX = (ios && height >= 812);
const safeAreaTopHeight = (ios?(isIPhoneX?24:0):StatusBar.currentHeight);

global.SS = {
  WIDTH:width,
  HEIGH:height,
  safeTopHeight:safeAreaTopHeight,
}



